import request from "./request"
// 请求首页数据
export const GetHomeDataApi =() => request("/index/index")
// 请求popup页面的热门和历史数据
export const HistoryHotApi =() => request("/search/index")
// 清除历史记录
export const ClearHistoryApi = params => request("/search/clearhistory",params)
// 请求商品列表信息
export const GoodsSearchApi = params => request("/goods/list",params)
// 搜索提示框
export const TipsListApi = params => request("/search/helper",params)
// 请求登录注册
export const LoginApi = params => request("/auth/loginByWeb",params)

// 请求详情页数据
export const GetGoodsDetailApi = params => request("/goods/detail",params)
// 请求相关产品数据
export const GetGoodsRelatedApi = params => request("/goods/related",params)
// 请求加入购物车
export const AddToCartApi = params => request("/cart/add",params)
// 获取购物车产品数量的请求
export const GetCartCountApi = params => request("/cart/goodscount",params)
// 获取购物车数据请求
export const GetCartDataApi = params => request("/cart/index",params)
// 购物车删除请求/cart/delete
export const DeleteCartApi = params => request("/cart/delete",params)

// 获取分类页面数据请求
export const GetTopicDataApi = params => request("/topic/list",params)

// 获取全部分类数据
export const GetCateDataApi = params => request("/catalog/index",params)
// 获取当前分类数据
export const GetCateCurrentApi = params => request("/catalog/current",params)

// 首页宫格 分类数据获取 /goods/category
export const GetCateGoodsApi = params => request("/goods/category",params)
// 分类页面商品列表请求 /goods/list
export const CateGoodsListApi = params => request("/goods/list",params)

// 首页 品牌制造商详情
export const BrandDetailApi = params => request("/brand/detail",params)